package com.kstudio.videocapture.listimage;

import android.graphics.Bitmap;
import android.view.View;

public class KImageListViewWrapper {
    private KImageListViewAlbumIcon Base;
    private boolean mIsLoad;
    private int mPostion;

    public KImageListViewWrapper(View base) {
        Base = (KImageListViewAlbumIcon) base;
        mPostion = 0;
        mIsLoad = false;
    }

    public KImageListViewAlbumIcon getAlbumIconView() {
        return Base;
    }

    public void setLoadBitmap(Bitmap bm) {
        if(bm != null) {
            mIsLoad = true;
        } else {
            mIsLoad = false;
        }
        Base.setThumbnailBMP(bm);
    }

    public void setPosition(int pos) { mPostion = pos; }

    public int getPosition() { return mPostion; }

    public boolean isLoaded() { return mIsLoad; }
}
